package com.biz.model.Hmodel.sys;
// default package


import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.Date;

/**
 * TSysRole entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "t_sys_role")
public class TsysRole implements java.io.Serializable {

    // Fields

    private String id;
    private String pid;
    private String text;
    private String mark;
    private String iconCls;
    private short isdel=0;
    private Date createTime=new Date();
    private int platform=0;

    // Constructors

    /** default constructor */
    public TsysRole() {
    }



    public TsysRole(String id, String pid, String text, String mark,
                    String iconCls, short isdel, Date createTime, int platform) {
        super();
        this.id = id;
        this.pid = pid;
        this.text = text;
        this.mark = mark;
        this.iconCls = iconCls;
        this.isdel = isdel;
        this.createTime = createTime;
        this.platform = platform;
    }



    // Property accessors
    @GenericGenerator(name = "generator", strategy = "uuid.hex")
    @Id
    @GeneratedValue(generator = "generator")
    @Column(name = "id", unique = true, nullable = false, length = 40)
    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Column(name = "pid", length = 40)
    public String getPid() {
        return this.pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    @Column(name = "text")
    public String getText() {
        return this.text;
    }

    public void setText(String text) {
        this.text = text;
    }

    @Column(name = "iconCls", length = 40)
    public String getIconCls() {
        return this.iconCls;
    }

    public void setIconCls(String iconCls) {
        this.iconCls = iconCls;
    }


    @Column(name = "mark", length = 255)
    public String getMark() {
        return mark;
    }



    public void setMark(String mark) {
        this.mark = mark;
    }


    @Column(name = "isdel")
    public short getIsdel() {
        return isdel;
    }



    public void setIsdel(short isdel) {
        this.isdel = isdel;
    }


    @Column(name = "createTime")
    public Date getCreateTime() {
        return createTime;
    }



    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }


    @Column(name = "platform")
    public int getPlatform() {
        return platform;
    }



    public void setPlatform(int platform) {
        this.platform = platform;
    }




}